import App from './App'
import api from "./request/api.js"
// import './static/style/global.css'
import loginSucc from './request/login.js'
import tabbar from './components/custom-tab-bar.vue'
import lexiconNavVue from './components/lexiconNav.vue'
import statusCode from './utils/statusCode'
import config from './request/config.js'
import util from './utils/util'
import upLoadImage from './utils/upLoadImage'
import placeview from './components/placeview.vue'
import selectContentView from './components/selectContentView.vue'
import popCountdownView from './components/popCountdownView.vue'
import popPromptBox from './components/popPromptBox.vue'
import popNetworkBox from './components/popNetworkBox.vue'
import popSocketBox from './components/popSocketBox.vue'
import popLoadingBox from './components/popLoadingBox.vue'
import popImageBox from './components/popImageBox.vue'
import popLevel from './components/popLevel.vue'
import share from './utils/share.js'
import permission from './utils/permission'
import signPop from './components/signPop'
import {
	EventBus
} from './utils/eventBus'

import moment from 'moment';

Vue.prototype.$moment = moment;
Vue.prototype.$http = api;
Vue.prototype.$loginSucc = loginSucc;
Vue.prototype.$upLoadImage = upLoadImage;
Vue.prototype.$util = util;
Vue.prototype.$statusCode = statusCode;
Vue.prototype.$config = config;
Vue.prototype.$eventBus = EventBus
Vue.prototype.$share = share


// main.js
import uvUI from '@/uni_modules/uv-ui-tools'
// #ifndef VUE3
Vue.use(uvUI);
// #endif
// #ifdef VUE3
app.use(uvUI);
// #endif


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.component('lexiconNavVue', lexiconNavVue)
Vue.component('selectContentView', selectContentView)
Vue.component('popCountdownView', popCountdownView)
Vue.component('signPop', signPop)
Vue.component('placeview', placeview)
Vue.component('tabbar', tabbar)
Vue.component('statusCode', statusCode)
Vue.component('config', config)
Vue.component('util', util)
Vue.component('permission', permission)
Vue.component('popPromptBox', popPromptBox)
Vue.component('popNetworkBox', popNetworkBox)
Vue.component('popSocketBox', popSocketBox)
Vue.component('popLoadingBox', popLoadingBox)
Vue.component('popImageBox', popImageBox)
Vue.component('popLevel', popLevel)



import VueCompositionAPI from '@vue/composition-api'
Vue.use(VueCompositionAPI)


App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif




// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif